/*
*  Copyright 2019-2023 CY
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.xiao.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import me.zhengjie.modules.ejweixin.domain.NgCaseInfo;
import me.zhengjie.modules.ejweixin.domain.NgConstructionSiteInfo;

/**
* @description /
* @author cg
* @date 2025-05-20
**/
@Data
@TableName("ng_teacher")
public class Teacher implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "状态")
    private String post;

    @ApiModelProperty(value = "照片")
    private String img;

    @ApiModelProperty(value = "案例数")
    private Integer caseNum;

    @ApiModelProperty(value = "工地数")
    private Integer siteNum;

    @ApiModelProperty(value = "预约数")
    private Integer reseNum;

    @ApiModelProperty(value = "所属门店")
    private String rese;

    @ApiModelProperty(value = "设计经验")
    private String experience;

    @ApiModelProperty(value = "设计理念")
    private String concept;

    @ApiModelProperty(value = "擅长风格")
    private String style;

    @ApiModelProperty(value = "代表作品")
    private String workNum;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @ApiModelProperty(value = "所属区县")
    private String district;

    @ApiModelProperty(value = "人气")
    private Integer popularity;

    @TableField(exist = false)
    private String isLike;

    @TableField(exist = false)
    private String isCollect;

    private String designLevel;

    @TableField(exist = false)
    private Integer reservation;

    private Integer numberViews;

    private Integer numberWorks;

    private String isLeader;

    private String teacherTitle;

    private String certificate;

    @TableField(exist = false)
    private Integer reservationNum;

    @TableField(exist = false)
    private List<NgCaseInfo> caseImg;

    @TableField(exist = false)
    private List<NgConstructionSiteInfo> constructionImg;

    public void copy(Teacher source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
